package property.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class InfrastructureExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public InfrastructureExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIIdIsNull() {
            addCriterion("i_id is null");
            return (Criteria) this;
        }

        public Criteria andIIdIsNotNull() {
            addCriterion("i_id is not null");
            return (Criteria) this;
        }

        public Criteria andIIdEqualTo(Integer value) {
            addCriterion("i_id =", value, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdNotEqualTo(Integer value) {
            addCriterion("i_id <>", value, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdGreaterThan(Integer value) {
            addCriterion("i_id >", value, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("i_id >=", value, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdLessThan(Integer value) {
            addCriterion("i_id <", value, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdLessThanOrEqualTo(Integer value) {
            addCriterion("i_id <=", value, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdIn(List<Integer> values) {
            addCriterion("i_id in", values, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdNotIn(List<Integer> values) {
            addCriterion("i_id not in", values, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdBetween(Integer value1, Integer value2) {
            addCriterion("i_id between", value1, value2, "iId");
            return (Criteria) this;
        }

        public Criteria andIIdNotBetween(Integer value1, Integer value2) {
            addCriterion("i_id not between", value1, value2, "iId");
            return (Criteria) this;
        }

        public Criteria andINameIsNull() {
            addCriterion("i_name is null");
            return (Criteria) this;
        }

        public Criteria andINameIsNotNull() {
            addCriterion("i_name is not null");
            return (Criteria) this;
        }

        public Criteria andINameEqualTo(String value) {
            addCriterion("i_name =", value, "iName");
            return (Criteria) this;
        }

        public Criteria andINameNotEqualTo(String value) {
            addCriterion("i_name <>", value, "iName");
            return (Criteria) this;
        }

        public Criteria andINameGreaterThan(String value) {
            addCriterion("i_name >", value, "iName");
            return (Criteria) this;
        }

        public Criteria andINameGreaterThanOrEqualTo(String value) {
            addCriterion("i_name >=", value, "iName");
            return (Criteria) this;
        }

        public Criteria andINameLessThan(String value) {
            addCriterion("i_name <", value, "iName");
            return (Criteria) this;
        }

        public Criteria andINameLessThanOrEqualTo(String value) {
            addCriterion("i_name <=", value, "iName");
            return (Criteria) this;
        }

        public Criteria andINameLike(String value) {
            addCriterion("i_name like", value, "iName");
            return (Criteria) this;
        }

        public Criteria andINameNotLike(String value) {
            addCriterion("i_name not like", value, "iName");
            return (Criteria) this;
        }

        public Criteria andINameIn(List<String> values) {
            addCriterion("i_name in", values, "iName");
            return (Criteria) this;
        }

        public Criteria andINameNotIn(List<String> values) {
            addCriterion("i_name not in", values, "iName");
            return (Criteria) this;
        }

        public Criteria andINameBetween(String value1, String value2) {
            addCriterion("i_name between", value1, value2, "iName");
            return (Criteria) this;
        }

        public Criteria andINameNotBetween(String value1, String value2) {
            addCriterion("i_name not between", value1, value2, "iName");
            return (Criteria) this;
        }

        public Criteria andITypeIsNull() {
            addCriterion("i_type is null");
            return (Criteria) this;
        }

        public Criteria andITypeIsNotNull() {
            addCriterion("i_type is not null");
            return (Criteria) this;
        }

        public Criteria andITypeEqualTo(String value) {
            addCriterion("i_type =", value, "iType");
            return (Criteria) this;
        }

        public Criteria andITypeNotEqualTo(String value) {
            addCriterion("i_type <>", value, "iType");
            return (Criteria) this;
        }

        public Criteria andITypeGreaterThan(String value) {
            addCriterion("i_type >", value, "iType");
            return (Criteria) this;
        }

        public Criteria andITypeGreaterThanOrEqualTo(String value) {
            addCriterion("i_type >=", value, "iType");
            return (Criteria) this;
        }

        public Criteria andITypeLessThan(String value) {
            addCriterion("i_type <", value, "iType");
            return (Criteria) this;
        }

        public Criteria andITypeLessThanOrEqualTo(String value) {
            addCriterion("i_type <=", value, "iType");
            return (Criteria) this;
        }

        public Criteria andITypeLike(String value) {
            addCriterion("i_type like", value, "iType");
            return (Criteria) this;
        }

        public Criteria andITypeNotLike(String value) {
            addCriterion("i_type not like", value, "iType");
            return (Criteria) this;
        }

        public Criteria andITypeIn(List<String> values) {
            addCriterion("i_type in", values, "iType");
            return (Criteria) this;
        }

        public Criteria andITypeNotIn(List<String> values) {
            addCriterion("i_type not in", values, "iType");
            return (Criteria) this;
        }

        public Criteria andITypeBetween(String value1, String value2) {
            addCriterion("i_type between", value1, value2, "iType");
            return (Criteria) this;
        }

        public Criteria andITypeNotBetween(String value1, String value2) {
            addCriterion("i_type not between", value1, value2, "iType");
            return (Criteria) this;
        }

        public Criteria andIPriceIsNull() {
            addCriterion("i_price is null");
            return (Criteria) this;
        }

        public Criteria andIPriceIsNotNull() {
            addCriterion("i_price is not null");
            return (Criteria) this;
        }

        public Criteria andIPriceEqualTo(BigDecimal value) {
            addCriterion("i_price =", value, "iPrice");
            return (Criteria) this;
        }

        public Criteria andIPriceNotEqualTo(BigDecimal value) {
            addCriterion("i_price <>", value, "iPrice");
            return (Criteria) this;
        }

        public Criteria andIPriceGreaterThan(BigDecimal value) {
            addCriterion("i_price >", value, "iPrice");
            return (Criteria) this;
        }

        public Criteria andIPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("i_price >=", value, "iPrice");
            return (Criteria) this;
        }

        public Criteria andIPriceLessThan(BigDecimal value) {
            addCriterion("i_price <", value, "iPrice");
            return (Criteria) this;
        }

        public Criteria andIPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("i_price <=", value, "iPrice");
            return (Criteria) this;
        }

        public Criteria andIPriceIn(List<BigDecimal> values) {
            addCriterion("i_price in", values, "iPrice");
            return (Criteria) this;
        }

        public Criteria andIPriceNotIn(List<BigDecimal> values) {
            addCriterion("i_price not in", values, "iPrice");
            return (Criteria) this;
        }

        public Criteria andIPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("i_price between", value1, value2, "iPrice");
            return (Criteria) this;
        }

        public Criteria andIPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("i_price not between", value1, value2, "iPrice");
            return (Criteria) this;
        }

        public Criteria andIInstallDateIsNull() {
            addCriterion("i_install_date is null");
            return (Criteria) this;
        }

        public Criteria andIInstallDateIsNotNull() {
            addCriterion("i_install_date is not null");
            return (Criteria) this;
        }

        public Criteria andIInstallDateEqualTo(Date value) {
            addCriterionForJDBCDate("i_install_date =", value, "iInstallDate");
            return (Criteria) this;
        }

        public Criteria andIInstallDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("i_install_date <>", value, "iInstallDate");
            return (Criteria) this;
        }

        public Criteria andIInstallDateGreaterThan(Date value) {
            addCriterionForJDBCDate("i_install_date >", value, "iInstallDate");
            return (Criteria) this;
        }

        public Criteria andIInstallDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("i_install_date >=", value, "iInstallDate");
            return (Criteria) this;
        }

        public Criteria andIInstallDateLessThan(Date value) {
            addCriterionForJDBCDate("i_install_date <", value, "iInstallDate");
            return (Criteria) this;
        }

        public Criteria andIInstallDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("i_install_date <=", value, "iInstallDate");
            return (Criteria) this;
        }

        public Criteria andIInstallDateIn(List<Date> values) {
            addCriterionForJDBCDate("i_install_date in", values, "iInstallDate");
            return (Criteria) this;
        }

        public Criteria andIInstallDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("i_install_date not in", values, "iInstallDate");
            return (Criteria) this;
        }

        public Criteria andIInstallDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("i_install_date between", value1, value2, "iInstallDate");
            return (Criteria) this;
        }

        public Criteria andIInstallDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("i_install_date not between", value1, value2, "iInstallDate");
            return (Criteria) this;
        }

        public Criteria andILocationIsNull() {
            addCriterion("i_location is null");
            return (Criteria) this;
        }

        public Criteria andILocationIsNotNull() {
            addCriterion("i_location is not null");
            return (Criteria) this;
        }

        public Criteria andILocationEqualTo(String value) {
            addCriterion("i_location =", value, "iLocation");
            return (Criteria) this;
        }

        public Criteria andILocationNotEqualTo(String value) {
            addCriterion("i_location <>", value, "iLocation");
            return (Criteria) this;
        }

        public Criteria andILocationGreaterThan(String value) {
            addCriterion("i_location >", value, "iLocation");
            return (Criteria) this;
        }

        public Criteria andILocationGreaterThanOrEqualTo(String value) {
            addCriterion("i_location >=", value, "iLocation");
            return (Criteria) this;
        }

        public Criteria andILocationLessThan(String value) {
            addCriterion("i_location <", value, "iLocation");
            return (Criteria) this;
        }

        public Criteria andILocationLessThanOrEqualTo(String value) {
            addCriterion("i_location <=", value, "iLocation");
            return (Criteria) this;
        }

        public Criteria andILocationLike(String value) {
            addCriterion("i_location like", value, "iLocation");
            return (Criteria) this;
        }

        public Criteria andILocationNotLike(String value) {
            addCriterion("i_location not like", value, "iLocation");
            return (Criteria) this;
        }

        public Criteria andILocationIn(List<String> values) {
            addCriterion("i_location in", values, "iLocation");
            return (Criteria) this;
        }

        public Criteria andILocationNotIn(List<String> values) {
            addCriterion("i_location not in", values, "iLocation");
            return (Criteria) this;
        }

        public Criteria andILocationBetween(String value1, String value2) {
            addCriterion("i_location between", value1, value2, "iLocation");
            return (Criteria) this;
        }

        public Criteria andILocationNotBetween(String value1, String value2) {
            addCriterion("i_location not between", value1, value2, "iLocation");
            return (Criteria) this;
        }

        public Criteria andIOverhaulTimeIsNull() {
            addCriterion("i_overhaul_time is null");
            return (Criteria) this;
        }

        public Criteria andIOverhaulTimeIsNotNull() {
            addCriterion("i_overhaul_time is not null");
            return (Criteria) this;
        }

        public Criteria andIOverhaulTimeEqualTo(Integer value) {
            addCriterion("i_overhaul_time =", value, "iOverhaulTime");
            return (Criteria) this;
        }

        public Criteria andIOverhaulTimeNotEqualTo(Integer value) {
            addCriterion("i_overhaul_time <>", value, "iOverhaulTime");
            return (Criteria) this;
        }

        public Criteria andIOverhaulTimeGreaterThan(Integer value) {
            addCriterion("i_overhaul_time >", value, "iOverhaulTime");
            return (Criteria) this;
        }

        public Criteria andIOverhaulTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("i_overhaul_time >=", value, "iOverhaulTime");
            return (Criteria) this;
        }

        public Criteria andIOverhaulTimeLessThan(Integer value) {
            addCriterion("i_overhaul_time <", value, "iOverhaulTime");
            return (Criteria) this;
        }

        public Criteria andIOverhaulTimeLessThanOrEqualTo(Integer value) {
            addCriterion("i_overhaul_time <=", value, "iOverhaulTime");
            return (Criteria) this;
        }

        public Criteria andIOverhaulTimeIn(List<Integer> values) {
            addCriterion("i_overhaul_time in", values, "iOverhaulTime");
            return (Criteria) this;
        }

        public Criteria andIOverhaulTimeNotIn(List<Integer> values) {
            addCriterion("i_overhaul_time not in", values, "iOverhaulTime");
            return (Criteria) this;
        }

        public Criteria andIOverhaulTimeBetween(Integer value1, Integer value2) {
            addCriterion("i_overhaul_time between", value1, value2, "iOverhaulTime");
            return (Criteria) this;
        }

        public Criteria andIOverhaulTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("i_overhaul_time not between", value1, value2, "iOverhaulTime");
            return (Criteria) this;
        }

        public Criteria andIStatusIsNull() {
            addCriterion("i_status is null");
            return (Criteria) this;
        }

        public Criteria andIStatusIsNotNull() {
            addCriterion("i_status is not null");
            return (Criteria) this;
        }

        public Criteria andIStatusEqualTo(Byte value) {
            addCriterion("i_status =", value, "iStatus");
            return (Criteria) this;
        }

        public Criteria andIStatusNotEqualTo(Byte value) {
            addCriterion("i_status <>", value, "iStatus");
            return (Criteria) this;
        }

        public Criteria andIStatusGreaterThan(Byte value) {
            addCriterion("i_status >", value, "iStatus");
            return (Criteria) this;
        }

        public Criteria andIStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("i_status >=", value, "iStatus");
            return (Criteria) this;
        }

        public Criteria andIStatusLessThan(Byte value) {
            addCriterion("i_status <", value, "iStatus");
            return (Criteria) this;
        }

        public Criteria andIStatusLessThanOrEqualTo(Byte value) {
            addCriterion("i_status <=", value, "iStatus");
            return (Criteria) this;
        }

        public Criteria andIStatusIn(List<Byte> values) {
            addCriterion("i_status in", values, "iStatus");
            return (Criteria) this;
        }

        public Criteria andIStatusNotIn(List<Byte> values) {
            addCriterion("i_status not in", values, "iStatus");
            return (Criteria) this;
        }

        public Criteria andIStatusBetween(Byte value1, Byte value2) {
            addCriterion("i_status between", value1, value2, "iStatus");
            return (Criteria) this;
        }

        public Criteria andIStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("i_status not between", value1, value2, "iStatus");
            return (Criteria) this;
        }

        public Criteria andINotesIsNull() {
            addCriterion("i_notes is null");
            return (Criteria) this;
        }

        public Criteria andINotesIsNotNull() {
            addCriterion("i_notes is not null");
            return (Criteria) this;
        }

        public Criteria andINotesEqualTo(String value) {
            addCriterion("i_notes =", value, "iNotes");
            return (Criteria) this;
        }

        public Criteria andINotesNotEqualTo(String value) {
            addCriterion("i_notes <>", value, "iNotes");
            return (Criteria) this;
        }

        public Criteria andINotesGreaterThan(String value) {
            addCriterion("i_notes >", value, "iNotes");
            return (Criteria) this;
        }

        public Criteria andINotesGreaterThanOrEqualTo(String value) {
            addCriterion("i_notes >=", value, "iNotes");
            return (Criteria) this;
        }

        public Criteria andINotesLessThan(String value) {
            addCriterion("i_notes <", value, "iNotes");
            return (Criteria) this;
        }

        public Criteria andINotesLessThanOrEqualTo(String value) {
            addCriterion("i_notes <=", value, "iNotes");
            return (Criteria) this;
        }

        public Criteria andINotesLike(String value) {
            addCriterion("i_notes like", value, "iNotes");
            return (Criteria) this;
        }

        public Criteria andINotesNotLike(String value) {
            addCriterion("i_notes not like", value, "iNotes");
            return (Criteria) this;
        }

        public Criteria andINotesIn(List<String> values) {
            addCriterion("i_notes in", values, "iNotes");
            return (Criteria) this;
        }

        public Criteria andINotesNotIn(List<String> values) {
            addCriterion("i_notes not in", values, "iNotes");
            return (Criteria) this;
        }

        public Criteria andINotesBetween(String value1, String value2) {
            addCriterion("i_notes between", value1, value2, "iNotes");
            return (Criteria) this;
        }

        public Criteria andINotesNotBetween(String value1, String value2) {
            addCriterion("i_notes not between", value1, value2, "iNotes");
            return (Criteria) this;
        }

        public Criteria andIStaffIdIsNull() {
            addCriterion("i_staff_id is null");
            return (Criteria) this;
        }

        public Criteria andIStaffIdIsNotNull() {
            addCriterion("i_staff_id is not null");
            return (Criteria) this;
        }

        public Criteria andIStaffIdEqualTo(Integer value) {
            addCriterion("i_staff_id =", value, "iStaffId");
            return (Criteria) this;
        }

        public Criteria andIStaffIdNotEqualTo(Integer value) {
            addCriterion("i_staff_id <>", value, "iStaffId");
            return (Criteria) this;
        }

        public Criteria andIStaffIdGreaterThan(Integer value) {
            addCriterion("i_staff_id >", value, "iStaffId");
            return (Criteria) this;
        }

        public Criteria andIStaffIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("i_staff_id >=", value, "iStaffId");
            return (Criteria) this;
        }

        public Criteria andIStaffIdLessThan(Integer value) {
            addCriterion("i_staff_id <", value, "iStaffId");
            return (Criteria) this;
        }

        public Criteria andIStaffIdLessThanOrEqualTo(Integer value) {
            addCriterion("i_staff_id <=", value, "iStaffId");
            return (Criteria) this;
        }

        public Criteria andIStaffIdIn(List<Integer> values) {
            addCriterion("i_staff_id in", values, "iStaffId");
            return (Criteria) this;
        }

        public Criteria andIStaffIdNotIn(List<Integer> values) {
            addCriterion("i_staff_id not in", values, "iStaffId");
            return (Criteria) this;
        }

        public Criteria andIStaffIdBetween(Integer value1, Integer value2) {
            addCriterion("i_staff_id between", value1, value2, "iStaffId");
            return (Criteria) this;
        }

        public Criteria andIStaffIdNotBetween(Integer value1, Integer value2) {
            addCriterion("i_staff_id not between", value1, value2, "iStaffId");
            return (Criteria) this;
        }

        public Criteria andIFinanceIdIsNull() {
            addCriterion("i_finance_id is null");
            return (Criteria) this;
        }

        public Criteria andIFinanceIdIsNotNull() {
            addCriterion("i_finance_id is not null");
            return (Criteria) this;
        }

        public Criteria andIFinanceIdEqualTo(Integer value) {
            addCriterion("i_finance_id =", value, "iFinanceId");
            return (Criteria) this;
        }

        public Criteria andIFinanceIdNotEqualTo(Integer value) {
            addCriterion("i_finance_id <>", value, "iFinanceId");
            return (Criteria) this;
        }

        public Criteria andIFinanceIdGreaterThan(Integer value) {
            addCriterion("i_finance_id >", value, "iFinanceId");
            return (Criteria) this;
        }

        public Criteria andIFinanceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("i_finance_id >=", value, "iFinanceId");
            return (Criteria) this;
        }

        public Criteria andIFinanceIdLessThan(Integer value) {
            addCriterion("i_finance_id <", value, "iFinanceId");
            return (Criteria) this;
        }

        public Criteria andIFinanceIdLessThanOrEqualTo(Integer value) {
            addCriterion("i_finance_id <=", value, "iFinanceId");
            return (Criteria) this;
        }

        public Criteria andIFinanceIdIn(List<Integer> values) {
            addCriterion("i_finance_id in", values, "iFinanceId");
            return (Criteria) this;
        }

        public Criteria andIFinanceIdNotIn(List<Integer> values) {
            addCriterion("i_finance_id not in", values, "iFinanceId");
            return (Criteria) this;
        }

        public Criteria andIFinanceIdBetween(Integer value1, Integer value2) {
            addCriterion("i_finance_id between", value1, value2, "iFinanceId");
            return (Criteria) this;
        }

        public Criteria andIFinanceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("i_finance_id not between", value1, value2, "iFinanceId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}